FAQ汇萃 >> Tomcat >> WEB 调用 servlet 的时候,我如何把<host>/servlet/<class> 换成 <host>/servlets/<class> [查看别人的评论]

由 webmaster 发布于: 2001-01-30 09:31

Cool

Change the url-pattern of the default servlet invoker located in the "deployment descriptor" for your web application. This file us usually located in <context>/WEB-INF/web.xml file. Replace:

/servlet/*

with:

/servets/*

Also note that in Tomcat 3.1, web applications begin with the default "deployment descriptor" located in <tomcat home dir>/conf/web.xml. You can change the "default" for all web applications there.

点这里对该文章发表评论

该文章总得分是 0 分,你认为它对你有帮助吗? [非常多](0) [有一些](0) [无帮助](0) [是灌水](0)

Copyright © 2001 - 2009 JSP001.com . All Rights Reserved